package com.xmut.mall.coupon.feign;

import com.xmut.mall.coupon.annotation.CheckJwt;
import com.xmut.mall.coupon.utils.RespBean;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.Map;

@FeignClient("mall-product")
public interface ProductFeignService {
    /**
     * 根据参数获取Sku赠品
     * @param params
     * @return
     */
    @CheckJwt
    @PostMapping("/product/skuinfo/getSkuGiftByParams")
    RespBean getSkuGiftByParams(@RequestBody Map<String,Object> params);
}
